import Vue from 'vue'
import VueRouter from 'vue-router'
import Shop from '../componts/shop.vue'
import Sy from '../componts/sy.vue'
import Lianbiao from '../componts/lianbiao.vue'
import Gwc from '../componts/gwc.vue'
import Wd from '../componts/wd.vue'
import Denglu from '../componts/denglu.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Shop',
    component: Shop,
    children: [
      {
        path: '/sy',
        name: 'Sy',
        component: Sy,
      },
      {
        path: '/lianbiao',
        name: 'Lianbiao',
        component: Lianbiao,
      },
      {
        path: '/gwc',
        name: 'Gwc',
        component: Gwc,
      },
      {
        path: '/wd',
        name: 'Wd',
        component: Wd,
      },
    ]
  },
  {
    path: '/denglu',
    name: 'Denglu',
    component: Denglu,
  },
]

const router = new VueRouter({
  routes
})

export default router
